import { post } from '@/utils/fetch';

// 不需要租户的查询接口
export const getUserList = data => post(
  '/usercenter-admin-app/admin/sysEmployeeOrg/selectEmployeeListInOrgByName',
  data
);

export const getUserGroupList = data => post('/usercenter-admin-app/admin/sysGroup/selectPage', data);

export const addUserGroup = data => post('/usercenter-admin-app/admin/sysGroup/insert', data);

export const updateUserGroup = data => post('/usercenter-admin-app/admin/sysGroup/update', data);

export const getEmployeeOfGroup = data => post(
  '/usercenter-admin-app/admin/sysGroup/selectEmployeeDetailPageByGroupId',
  data
);

export const delEmployeeOfGroup = data => post('/usercenter-admin-app/admin/sysEmployeeGroup/delete', data);

export const enableGroup = data => post('/usercenter-admin-app/admin/sysGroup/enable', data);

export const disableGroup = data => post('/usercenter-admin-app/admin/sysGroup/disable', data);

export const deleteGroup = data => post('/usercenter-admin-app/admin/sysGroup/delete', data);

export const getEmployeeOfOrg = data => post('/usercenter-admin-app/admin/sysEmployeeOrg/selectListByOrgId', data);


export const getEmployeeAndOrgList = data => post('/usercenter-admin-app/admin/sysOrg/qryChildOrgListByParentId', data);
